<template>
  <!-- 底部导航（移动端） -->
  <nav class="mobile-nav">
    <router-link to="/" class="mobile-nav-item">
      <i class="fa fa-home"></i>
      <span>首页</span>
    </router-link>
    <router-link to="/discover" class="mobile-nav-item">
      <i class="fa fa-compass"></i>
      <span>发现</span>
    </router-link>
    <button class="upload-icon">
      <img src="@/assets/icons/upload-logo.svg" alt="上传" width="24" height="24">
    </button>
    <router-link to="/message" class="mobile-nav-item">
      <i class="fa fa-bell"></i>
      <span>消息</span>
    </router-link>
    <router-link to="/profile" class="mobile-nav-item">
      <i class="fa fa-user"></i>
      <span>我的</span>
    </router-link>
  </nav>
</template>

<script>
export default {
  name: 'MobileNav',
}
</script>

<style scoped>
/* 移动端导航 */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.router-link-active {
  color: var(--primary-color);
}

.mobile-nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.upload-icon {
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transform: translateY(-20px);
  box-shadow: 0 4px 12px rgba(251, 114, 153, 0.4);
  transition: all 0.3s ease;
}

.upload-icon:hover {
  background-color: #E96385;
  transform: translateY(-20px) scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
  }
}
</style>